Loading

×Sorry to interrupt
This page has an error. You might just need to refresh it.
[NoErrorObjectAvailable] Uncaught ReferenceError: addCTracking is not defined
Failing descriptor: {markup://c:KM_ArticleThemeLayout}

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

"[Ora]ORA-20000: ERROR ! Missing constraints" while upgrading VC from 6.0 to 6.5 (56190)

Last Updated: 3/20/2024Categories: TroubleshootingTotal Views: 5679Language:
Chinese (Simplified)JapaneseEnglish

1 like this article

Subscribe to get an email
newsletter with new updates

1 people found this helpful Please provide article feedback:

Symptoms

Upgrading vCenter Server from 6.0 to 6.5 and using a database that was initially created by VMware Virtual Infrastructure 3 or earlier

The database had been upgraded from multiple versions of vCenter Server

In the %TEMP%\...\vcsUpgrade\vcdb_req.err file, you see entries similar to:

Error while executing ./Upgrade-v2015-to-v2016/oracle/validate_oracle.sql:239, reason: Cannot execute statement(rc=-1).
DECLARE
l_text_full VARCHAR2(32767) := NULL;
l_text VARCHAR2(2000) := NULL;
l_verid int;
BEGIN

1 [HY000](20000) [Oracle][ODBC][Ora]ORA-20000: ERROR ! Missing constraints: VPX_EXT_TYPE_IDS.FK_VETI_REF_EXT,VPX_EXT_SERVER_EMAIL.FK_VPX_EMAIL_REF_SERVER; Extra tables or columns: VPX_HIST_STAT_TMP.COUNTER_ID,VPX_HIST_STAT_TMP.STAT_VAL,VPX_HIST_STAT_TMP.TIME_ID; Extra indexes: VPX_HIST_STAT_TMP.IX_VPX_HIST_STAT_TMP_TID; Extra constraints: VPX_EXT_TYPE_IDS.FK_VPX_EXT_TYPE_IDS_REF_EXT;
ORA-06512: at line 199

ERROR: Cannot execute statement(rc=-1).
DECLARE
l_text_full VARCHAR2(32767) := NULL;
l_text VARCHAR2(2000) := NULL;
l_verid int;
BEGIN

1 [HY000](20000) [Oracle][ODBC][Ora]ORA-20000: ERROR ! Missing constraints: VPX_EXT_TYPE_IDS.FK_VETI_REF_EXT,VPX_EXT_SERVER_EMAIL.FK_VPX_EMAIL_REF_SERVER; Extra tables or columns: VPX_HIST_STAT_TMP.COUNTER_ID,VPX_HIST_STAT_TMP.STAT_VAL,VPX_HIST_STAT_TMP.TIME_ID; Extra indexes: VPX_HIST_STAT_TMP.IX_VPX_HIST_STAT_TMP_TID; Extra constraints: VPX_EXT_TYPE_IDS.FK_VPX_EXT_TYPE_IDS_REF_EXT;
ORA-06512: at line 199

Purpose

To prevent vCenter Server upgrade process failure when upgrading from version 6.0 to 6.5.

Cause

This issue occurs when tables or constraints that are no longer used still exist within the vCenter Server database. The vCenter Server 6.0 database upgrade scripts do not remove these tables and prevent the upgrade from completing.

Impact / Risks

The vCenter Server 6.5 database upgrade process errors out and fail to complete successfully.
Ensure to take a good backup of the existing vCenter Server Oracle database before re-running the upgrade process.

Resolution

Ensure to take a good backup of the existing vCenter Server Oracle database before re running the upgrade process.

Log in to sqlplus with the vCenter Server database Schema owner and password.

Example: vpxadmin user

Do a cleanup of the vCenter Server Oracle database by executing the sql statements as follows:

alter table VPX_EXT_TYPE_IDS add constraint FK_VETI_REF_EXT foreign key (EXT_ID)  references VPX_EXT (EXT_ID) on delete cascade;
alter table VPX_EXT_SERVER_EMAIL add constraint FK_VPX_EMAIL_REF_SERVER foreign key (EXT_SERVER_ID) references VPX_EXT_SERVER (EXT_SERVER_ID) on delete cascade;
drop index VPX_HIST_STAT_TMP.IX_VPX_HIST_STAT_TMP_TID;
drop table VPX_HIST_STAT_TMP;
alter table VPX_EXT_TYPE_IDS drop constraint FK_VPX_EXT_TYPE_IDS_REF_EXT;

Note: Verify that the dropped objects are in the recycle bin with the below query:

SELECT object_name as recycle_name, original_name, type FROM recyclebin;

Re-run the vCenter Server 6.5 upgrade process.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

No results for undefined

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

Related Versions:

Take Our Survey

Support Assistant